package com.lfy.modules.blog.domain.dto.article;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.List;
@Data
public class ModifyArticleDTO {
    @NotNull(message = "文章ID不能为空")
    private Long id;
    @NotBlank(message = "文章标题不能为空")
    private String title;
    @NotBlank(message = "文章内容不能为空")
    private String content;
    @NotBlank(message = "文章内容不能为空")
    private String allContent;
    @NotNull(message = "文章标签不能为空")
    private List<Long> tags;
    @NotBlank(message = "文章分类不能为空")
    private String category;

}
